package design.action.chain;

/**
 * @author zxs
 * @since 2020/05/26
 */
public class MyImpl1 implements MyInterface{

    private String name;

    public MyImpl1(String name) {
        this.name = name;
    }

    @Override
    public void doSomething(Param param,Chain chain) {
        System.out.println(name+" start process");
        if(name.equals(param.getName())){
            System.out.println(name+" start processed,end");
            return;
        }
        chain.doSomething(param);
    }
}
